/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Navegación */
/*.navbar {
    background-color: #2e8b57;
    color: white;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}*/

/*.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}*/

/*.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar .logo:hover {
    color: #e0e0e0;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin: 0 15px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #e0e0e0;
}*/

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    color: white;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: -1;
    transition: filter 0.3s;
}

.hero-background:hover {
    filter: brightness(0.6);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeIn 1.5s ease-out;
}

.search-form {
    margin: 20px 0;
    animation: fadeIn 1.5s ease-out;
}

.search-form input[type="text"] {
    padding: 10px;
    width: 60%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-form input[type="text"]:focus {
    border-color: #2e8b57;
}

.search-form button {
    padding: 10px;
    border: none;
    background-color: #2e8b57;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #245a44;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-buttons a {
    display: inline-block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: #2e8b57;
}

.btn-primary:hover {
    background-color: #245a44;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #f4f4f4;
    color: #2e8b57;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

/* Botón Flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: background-color 0.3s;
    text-decoration: none;
}

.whatsapp-button i {
    color: white;
    font-size: 30px;
}

.whatsapp-button:hover {
    background-color: #128C7E;
}

/* Propiedades */
.property-section {
    padding: 50px 0;
    background-color: #f4f4f4;
}

.property-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

.property-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.property-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.property-item img {
    width: 100%;
    height: auto;
}

.property-info {
    padding: 15px;
}

.property-info h3 {
    margin: 0;
    font-size: 18px;
}

.property-info p {
    color: #2e8b57;
    font-size: 20px;
}

/* Sobre Nosotros */
.about-section {
    padding: 50px 0;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

.mission-vision {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.mission, .vision {
    width: 48%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s;
}

.mission:hover, .vision:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.mission h3, .vision h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Nuestro Equipo de Trabajo */
.team-section {
    padding: 50px 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

.team {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.team-member {
    text-align: center;
    width: 200px;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    border-radius: 50%;
}

/* Testimonios */
.testimonials-section {
    padding: 50px 0;
    background-color: #f4f4f4;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

.testimonial {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.testimonial p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Blog */
.blog-section {
    padding: 50px 0;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 80%;
    max-width: 600px;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-post h3 {
    margin-top: 0;
}

/* Contacto */
.contact-section {
    padding: 50px 0;
    background-color: #f4f4f4;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    animation: fadeIn 1.5s ease-out;
}

.contact-info {
    text-align: center;
}

#map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
}

/* Footer */
.footer {
    background-color: #2e8b57;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer .social-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: #e0e0e0;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/****************************/


.property-description {
    padding: 50px;
    text-align: center;
    background-color: #f4f4f4;
}

.property-description .container {
    max-width: 800px;
    margin: auto;
}

.property-gallery {
    padding: 50px;
    background-color: #fff;
    text-align: center;
}

.property-gallery .container {
    max-width: 1200px;
    margin: auto;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.gallery img {
    width: calc(50% - 15px);
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .gallery img {
        width: 100%;
    }
}

/* Características de la Propiedad */
.property-features {
    padding: 20px 0;
    background-color: #f9f9f9;
}

.property-features .container {
    text-align: center;
}

.features-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 150px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-item i {
    font-size: 2rem;
    color: #4CAF50;
}

.feature-item span {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #333;
}


/* Animaciones y Transiciones */
.hero-content h1 {
    animation: fadeInDown 2s ease-out;
}

.property-features .feature-item {
    animation: fadeIn 1s ease-in-out;
}

.gallery img {
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Keyframes para animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Menú de Navegación */
.main-nav {
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.main-nav .nav-links li {
    display: inline;
}

.main-nav .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

/* Sección de Búsqueda y Filtros */
.search-filters {
    background-color: #f4f4f4;
    padding: 20px 0;
    text-align: center;
}

.search-filters h2 {
    margin-bottom: 15px;
}

.search-filters form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-filters input,
.search-filters select {
    padding: 10px;
    width: 200px;
}

.btn-filter {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.btn-filter:hover {
    background-color: #45a049;
}

/* Listado de Propiedades */
.property-list {
    padding: 20px 0;
}

.property-item {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.property-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.property-item img {
    max-width: 100%;
    height: auto;
}

.property-item h3 {
    font-size: 20px;
    margin: 10px 0;
}

.property-item p {
    margin: 5px 0;
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #45a049;
}

/* Paginación */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination-list {
    list-style: none;
    display: inline-flex;
    gap: 10px;
}

.pagination-item {
    margin: 0;
}

.pagination-item a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination-item a:hover,
.pagination-item a.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Botón de WhatsApp flotante */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/**********************************/

/* Estilos generales para la navegación */
.navbar {
    background-color: #333;
    color: white;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Estilos para el logo */
.logo img {
    width: 150px;
    height: auto;
}

/* Botón de menú hamburguesa (oculto en pantallas grandes) */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar el menú por defecto */
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 999;
    }

    .nav-links li {
        text-align: center;
        padding: 10px 0;
        width: 100%;
    }

    .menu-toggle {
        display: block; /* Mostrar el botón de menú hamburguesa */
    }

    .navbar .container {
        position: relative;
    }
}

/* Clase activa para mostrar el menú en dispositivos móviles */
.nav-links.active {
    display: flex;
}

/* Estilos del filtro de propiedades */
.property-filter {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-filter h2 {
    margin-bottom: 15px;
}

#filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    align-self: flex-end;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #555;
}

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
    #filter-form {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        align-self: stretch;
    }
}

 /* Estilos para el loader */
 .loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.property-gallery .gallery img {
    display: none; /* Oculta todas las imágenes inicialmente */
    width: 100%;
    max-width: 300px;
    margin: 10px;
    cursor: pointer;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Estilos del lightbox */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); 
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}



